<include file="Public/min-header" />
<div class="wrapper">
    <include file="Public/breadcrumb"/>
    <section class="content ">
        <!-- Main content -->
        <div class="container-fluid">
            <div class="pull-right">
                <a href="javascript:history.go(-1)" data-toggle="tooltip" title="" class="btn btn-default" data-original-title="返回"><i class="fa fa-reply"></i></a>
            </div>
            <div class="panel panel-default">
                <div class="panel-heading"><h3 class="panel-title"><i class="fa fa-list"></i> 添加报单中心等级</h3></div>
                <div class="panel-body ">   
                    <!--表单数据-->
                    <form method="post" id="handleposition" action="{:U('Admin/Zmd/gradeHandle')}">                    
                        <!--通用信息-->
                        <div class="tab-content col-md-10">                 	  
                            <div class="tab-pane active" id="tab_tongyong">                           
                                <table class="table table-bordered">
                                    <tbody>
                                        <tr>
                                            <td class="col-sm-2">等级名称：</td>
                                            <td class="col-sm-4">
                                                <input type="text" class="form-control" name="grade_name" value="{$info.grade_name}" >
                                                <span id="err_attr_name" style="color:#F00; display:none;"></span>                                        
                                            </td>
                                            <td class="col-sm-4">设置报单中心等级名称</td>
                                        </tr>  
                                        <tr>
                                            <td>必要会员级别{$info.level_id}：</td><td >
                                                <select class="form-control" name="level_id">
                                                    <option value="0">请选择</option>
                                                    <volist name="lever" id="p">
                                                        <option   <if condition="$p['level_id'] eq $info['level_id']"> selected </if> value="{$p.level_id}">{$p.level_name} - {$p.amount} 元</option>
                                                    </volist>
                                                </select>
                                            <td class="col-sm-4">设置申请此服务中心的会员自己的级别必须达到些级别</td>
                                        </tr>
                                        <tr>
                                            <td>等级必要业绩：</td><td ><input type="text" class="form-control" name="grade_amount" value="{$info.grade_amount}"></td>
                                            <td class="col-sm-4">设置申请此服务中心的会员所要累计的个人业绩</td>
                                        </tr>
                                        <tr>
                                            <td>等级必要直推人数：</td><td ><input type="text" class="form-control" name="grade_tjr" value="{$info.grade_tjr}"></td>
                                            <td class="col-sm-4">设置申请此服务中心的会员必须直推人数</td>
                                        </tr>
                                        <tr>
                                            <td>等级必要团队人数：</td><td ><input type="text" class="form-control" name="grade_true" value="{$info.grade_true}"></td>
                                            <td class="col-sm-4">设置申请此服务中心的会员团队人数</td>
                                        </tr>
                                        <tr>
                                            <td>报单奖比例：</td><td ><input type="text" class="form-control" name="price_per" value="{$info.price_per}"></td>
                                            <td class="col-sm-4">（%）报单奖比例</td>
                                        </tr>
                                    </tbody> 
                                    <tfoot>
                                        <tr>
                                            <td><input type="hidden" name="act" value="{$act}">
                                                <input type="hidden" name="grade_id" value="{$info.grade_id}">
                                            </td>
                                            <td class="col-sm-4"></td>
                                            <td class="text-right"><input class="btn btn-primary" type="buuton" onclick="adsubmit()" value="保存"></td></tr>
                                    </tfoot>                               
                                </table>
                            </div>                           
                        </div>              
                    </form><!--表单数据-->
                </div>
            </div>
        </div>
    </section>
</div>
<script>
    function adsubmit() {
        $('#handleposition').submit();
    }
</script>
</body>
</html>